//
//  TableViewCell.m
//  Socrates
//
//  Created by shy on 15/3/15.
//  Copyright (c) 2015年 shy. All rights reserved.
//

#import "LabelTextFieldTableViewCell.h"

@interface LabelTextFieldTableViewCell () {
    
}

@end

@implementation LabelTextFieldTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        CGFloat width = [UIScreen mainScreen].bounds.size.width;
        
        self.contentView.backgroundColor = [UIColor whiteColor];
        
        self.label = [[UILabel alloc] initWithFrame:CGRectMake(30, 3, 40, 30)];
        self.label.font = [UIFont systemFontOfSize:16.];
        self.label.textColor = [UIColor blackColor];
//        self.label.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:self.label];
        
        self.textField = [[UITextField alloc] initWithFrame:CGRectMake(90, 3, width - 120, 30)];
        self.textField.font = [UIFont systemFontOfSize:16.];
        self.textField.textColor = [UIColor grayColor];
//        self.textField.backgroundColor = [UIColor blueColor];
        [self.contentView addSubview:self.textField];
    }
    return self;
}

@end
